#ifndef __VIEW_H__
#define __VIEW_H__

typedef struct view_t
{
	uint32_t seqno; /*sequence number*/
	uint32_t vid; /*view identifier*/
	/*array of members*/
	array_p mems;
	/*master member*/
	uint32_t master;
}view_t, *view_p;

view_p view_new(uint32_t id);
int view_addmem(view_p self);
int view_remmem(view_p self);
int view_chkmem(view_p self);
void view_free(view_p *self_p);

#endif
